package com.hs.hlw.credit.system.business.service;

import com.hs.hlw.credit.system.business.dto.ResponseDto;
import com.hs.hlw.credit.system.business.dto.SubmissionFormFieldDto;
import com.hs.hlw.credit.system.business.dto.UserDto;

/**
 * SubmissionFormFieldService
 * @author zhb
 * @date 2018/11/21
 */
public interface SubmissionFormFieldService {
    /**
     * 更新文本输入规则
     * @param data
     * @param user
     * @return
     */
    ResponseDto update1(SubmissionFormFieldDto.Update1 data, UserDto user);

    /**
     * 更新数值输入规则
     * @param data
     * @param user
     * @return
     */
    ResponseDto update2(SubmissionFormFieldDto.Update2 data, UserDto user);

    /**
     * 更新维表选择规则
     * @param data
     * @param user
     * @return
     */
    ResponseDto update3(SubmissionFormFieldDto.Update3 data, UserDto user);

    /**
     * 更新日期选择规则
     * @param data
     * @param user
     * @return
     */
    ResponseDto update4(SubmissionFormFieldDto.Update4 data, UserDto user);

    /**
     * 根据表单获取字段列表
     * @param formId
     * @return
     */
    ResponseDto getFiledListByForm(Integer formId);
}